package ${packages}.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import ${packages}.dao.${className}Dao;
import ${packages}.model.${className};
import ${packages}.model.${className}Bean;
import ${packages}.service.spi.${className}Service;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * ${tableName}相关的service业务实现。
 * @author yinlei
 * @date ${currentDate}
 */
@Named
public class ${className}ServiceImpl extends MyBatisServiceImpl<${className}, ${className}Bean, ${pk}> implements ${className}Service {
	// 添加了方法后，记得改为private
	protected ${className}Dao ${smallClassName}Dao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<${className}, ${className}Bean, ${pk}> ${smallClassName}Dao) {
		this.baseDao = ${smallClassName}Dao;
		this.${smallClassName}Dao = (${className}Dao) ${smallClassName}Dao;
	}
}
